@model ShivamEMR.Model.Domain.MedicalDomain.Radiology

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Name)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Name)
    @Html.ValidationMessageFor(model => model.Name)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Description)
    @Html.ValidationMessageFor(model => model.Description)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Notes)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Notes)
    @Html.ValidationMessageFor(model => model.Notes)
</div>

<div class="editor-label">
    Group
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.GroupID, ((IEnumerable<ShivamEMR.Model.Domain.MedicalDomain.RadiologyGroup>)ViewBag.PossibleGroups).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Name), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.GroupID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.GroupID)
</div>
<div class="editor-label">
    Attachment
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.AttachmentID, ((IEnumerable<ShivamEMR.Model.Domain.MedicalDomain.RadiologyAttachment>)ViewBag.PossibleAttachments).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Title), 
        Value = option.ID.ToString(),
        Selected = (Model != null) && (option.ID == Model.AttachmentID)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.AttachmentID)
</div>
